package com.isnmp.common.snmp.trap;

import java.sql.Timestamp;
import java.util.ArrayList;
import java.util.List;
import org.snmp4j.PDU;
import org.snmp4j.smi.Variable;

public class TrapMessageInfo {
    private String agentSendIP = "";
    private String pduAgentIP = "";
    private Timestamp receiverTime = new Timestamp(System.currentTimeMillis());
    private int trapVersion = 1;
    private int trapV1GenericType = -1;
    private int trapV1SpecificType = -1;
    private String trapName = "";
    private String trapOID = "";
    private List<String> trapPDUOIDs = new ArrayList();
    private List<Variable> trapPDUOIDValues = new ArrayList();
    private PDU originalPDU;
    public static final int TrapVersionV1 = 1;
    public static final int TrapVersionV2 = 2;

    public Variable getOIDValue(String paramString) {
        for (int i = 0; i < this.trapPDUOIDs.size(); i++) {
            String str = (String) this.trapPDUOIDs.get(i);
            if (paramString.equals(str))
                return (Variable) this.trapPDUOIDValues.get(i);
        }
        return null;
    }

    public String getAgentSendIP() {
        return this.agentSendIP;
    }

    public void setAgentSendIP(String paramString) {
        this.agentSendIP = paramString;
    }

    public Timestamp getReceiverTime() {
        return this.receiverTime;
    }

    public void setReceiverTime(Timestamp paramTimestamp) {
        this.receiverTime = paramTimestamp;
    }

    public int getTrapVersion() {
        return this.trapVersion;
    }

    public void setTrapVersion(int paramInt) {
        this.trapVersion = paramInt;
    }

    public String getTrapName() {
        return this.trapName;
    }

    public void setTrapName(String paramString) {
        this.trapName = paramString;
    }

    public String getTrapOID() {
        return this.trapOID;
    }

    public void setTrapOID(String paramString) {
        this.trapOID = paramString;
    }

    public String getPduAgentIP() {
        return this.pduAgentIP;
    }

    public void setPduAgentIP(String paramString) {
        this.pduAgentIP = paramString;
    }

    public int getTrapV1GenericType() {
        return this.trapV1GenericType;
    }

    public void setTrapV1GenericType(int paramInt) {
        this.trapV1GenericType = paramInt;
    }

    public int getTrapV1SpecificType() {
        return this.trapV1SpecificType;
    }

    public void setTrapV1SpecificType(int paramInt) {
        this.trapV1SpecificType = paramInt;
    }

    public List<String> getTrapPDUOIDs() {
        return this.trapPDUOIDs;
    }

    public void setTrapPDUOIDs(List<String> paramList) {
        this.trapPDUOIDs = paramList;
    }

    public List<Variable> getTrapPDUOIDValues() {
        return this.trapPDUOIDValues;
    }

    public void setTrapPDUOIDValues(List<Variable> paramList) {
        this.trapPDUOIDValues = paramList;
    }

    public void setOriginalPDU(PDU paramPDU) {
        this.originalPDU = paramPDU;
    }

    public PDU getOriginalPDU() {
        return this.originalPDU;
    }
}